﻿using System;
using System.Collections.Generic;
using System.Text;

namespace NFinal
{
    /// <summary>
    /// MVC结果虚拟类
    /// </summary>
    public abstract class ActionResult:IActionResult
    {
        /// <summary>
        /// 文档类型
        /// </summary>
        public string ContentType { get; set; }
        /// <summary>
        /// 输出文档
        /// </summary>
        /// <typeparam name="TRequest">Http请求类型</typeparam>
        /// <typeparam name="TContext">Http上下文类型</typeparam>
        /// <param name="context">NFinal中的Action对象</param>
        public abstract void ExecuteResult<TContext, TRequest>(NFinal.Action.AbstractAction<TContext,TRequest> context);
    }
}
